﻿package Message.Public
{
    import Framework.Serialize.*;

    public class SCopyWaitingGroup extends Object
    {
        public var groupId:SEntityId;
        public var captainId:SEntityId;
        public var captainPlayer:SPublicPlayer;
        public var groupName:String;
        public var combatLimit:int;
        public var hasPassword:Boolean;
        public var memberNum:int;
        public var averageCombat:int;

        public function SCopyWaitingGroup()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            this.groupId.__write(param1);
            this.captainId.__write(param1);
            this.captainPlayer.__write(param1);
            param1.writeString(this.groupName);
            param1.writeInt(this.combatLimit);
            param1.writeBool(this.hasPassword);
            param1.writeInt(this.memberNum);
            param1.writeInt(this.averageCombat);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.groupId = new SEntityId();
            this.groupId.__read(param1);
            this.captainId = new SEntityId();
            this.captainId.__read(param1);
            this.captainPlayer = new SPublicPlayer();
            this.captainPlayer.__read(param1);
            this.groupName = param1.readString();
            this.combatLimit = param1.readInt();
            this.hasPassword = param1.readBool();
            this.memberNum = param1.readInt();
            this.averageCombat = param1.readInt();
            return;
        }// end function

    }
}
